package com.zhang.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.entity.ShoppingCategory2;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhangD
 * @since 2021-07-13
 */
public interface ShoppingCategory2Service extends IService<ShoppingCategory2> {

    Page<ShoppingCategory2> selectShoppingCategory2(int category1Id, int pageNum , int pageSize);

    Page<ShoppingCategory2> category2Name(String category2Name,int pageNo ,int pageSize);

    int changeValue(String category2Id);

    ShoppingCategory2 getCategory(String category2Id);

    int addCategory2(String category2Name,String category2Record,String category1Id);

    int updateCategory2 (String id,String category2Name,String category2Record,String category1Id);


}
